<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>反向引用：element.form</title>
	</head>
	<body>
		<form id="form" action="#">
			<input type="text" name="login" />
		</form>

		<script>
			let login = form.login

			// 反向获取整个 form 元素
			console.log(login.form) // <form id="form" action="#"> ... </form>
		</script>
	</body>
</html>
